// EXPRESS/mysql/db.js
const mysql = require("mysql2");

const db = mysql.createConnection({
  host: "59.110.82.252",
  user: "wuzu555",
  password: "wuzu555",
  database: "wuzu555",
  port: 3306,
});

db.connect((err) => {
  if (err) throw err;
  console.log("MySQL 连接成功");
});

module.exports = db;